<?php
/**
 * CK 快速开发框架
 * User: Clake
 * Date: 15/6/2
 * Time: 00:55
 */

namespace CK\Mode\Web;

use CK\Core\Config;
use CK\Core\Router;
use CK\Core\Loader;
use CK\Database\DBA;

/**
 * Class App
 * WEB 模式运行(默认)
 * @package CK\Mode\Web
 */
class App extends \CK\Core\App{
    protected function init() {
        if (CK_DEBUG) {
            DBA::inst()->set_error_mode(DBA::DBA_ERR_DEBUG);
        }
        //设置应用路由
        $this->setRouter(Router::inst());
        //得到模块类
        $this->_module = $this->_router->getModule();
    }
}